<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" xmlns:th="http://www.thymeleaf.org">
    <title>Title</title>
    <script src="/js/jquery.js"></script>
</head>
<body>
<form action="/add" method="post" onsubmit="return x()">
    <p>名称:<input type="text"  name="name" required></p>
    <p>价格:<input type="text"  name="price" required pattern="^\d{1,5}$"></p>
    <p>类别:<input type="text"  name="category" required></p>
    <p>数量:<input type="text"  name="pnum" required pattern="^\d{1,5}$"></p>
    <p>简述:<input type="text" name="description" required></p>
    <p>作者:<input type="text"  name="author" required></p>
    <p>销售量:<input type="text" name="sales" required pattern="^\d[1-9]$"></p>
    <input type="submit" value="提交">
</form>
</body>
</html>